package com.sale24h.data;

import org.json.JSONException;
import org.json.JSONObject;

public class clsChiTietBan
{
	private int id;
	private String mact;
	private String mahang;
	private int soluong;
	private double chietkhau;
	private double giatri;
	private Boolean update;
	private int trangthai;
	private String soorder;
	private String gioorder;
	private String phucvu;
	private String tenhang;
	private String tendonvi;
	private String ghichu;
	private double dongia1;
	private double dongia2;
	private double dongia3;
	public int getId()
	{
		return id;
	}
	public void setId(int id)
	{
		this.id = id;
	}
	public String getMact()
	{
		return mact;
	}
	public void setMact(String mact)
	{
		this.mact = mact;
	}
	public String getMahang()
	{
		return mahang;
	}
	public void setMahang(String mahang)
	{
		this.mahang = mahang;
	}
	public int getSoluong()
	{
		return soluong;
	}
	public void setSoluong(int soluong)
	{
		this.soluong = soluong;
	}
	public double getChietkhau()
	{
		return chietkhau;
	}
	public void setChietkhau(double chietkhau)
	{
		this.chietkhau = chietkhau;
	}
	public double getGiatri()
	{
		return giatri;
	}
	public void setGiatri(double giatri)
	{
		this.giatri = giatri;
	}
	public Boolean getUpdate()
	{
		return update;
	}
	public void setUpdate(Boolean update)
	{
		this.update = update;
	}
	public int getTrangthai()
	{
		return trangthai;
	}
	public void setTrangthai(int trangthai)
	{
		this.trangthai = trangthai;
	}
	public String getSoorder()
	{
		return soorder;
	}
	public void setSoorder(String soorder)
	{
		this.soorder = soorder;
	}
	public String getGioorder()
	{
		return gioorder;
	}
	public void setGioorder(String gioorder)
	{
		this.gioorder = gioorder;
	}
	public String getPhucvu()
	{
		return phucvu;
	}
	public void setPhucvu(String phucvu)
	{
		this.phucvu = phucvu;
	}
	public String getTenhang()
	{
		return tenhang;
	}
	public void setTenhang(String tenhang)
	{
		this.tenhang = tenhang;
	}
	public String getTendonvi()
	{
		return tendonvi;
	}
	public void setTendonvi(String tendonvi)
	{
		this.tendonvi = tendonvi;
	}
	public String getGhichu()
	{
		return ghichu;
	}
	public void setGhichu(String ghichu)
	{
		this.ghichu = ghichu;
	}
	
	public clsChiTietBan()
	{
		
	}
	public void ApplyfromJSON(JSONObject obj) throws JSONException
	{
		this.id=obj.getInt("id");
		this.mahang=obj.getString("mahang");
		this.soluong=obj.getInt("soluong");
		this.dongia1=obj.getDouble("dongia1");
		this.dongia2=obj.getDouble("dongia2");
		this.dongia3=obj.getDouble("dongia3");
		this.tenhang=obj.getString("tenhang");
	}
	public double getDongia1()
	{
		return dongia1;
	}
	public void setDongia1(double dongia1)
	{
		this.dongia1 = dongia1;
	}
	public double getDongia2()
	{
		return dongia2;
	}
	public void setDongia2(double dongia2)
	{
		this.dongia2 = dongia2;
	}
	public double getDongia3()
	{
		return dongia3;
	}
	public void setDongia3(double dongia3)
	{
		this.dongia3 = dongia3;
	}
}
